package sketch.ounit.fuzz;

public class PseduoProgram {
	
	int i = -1;
	
	String x = null;
	
	public PseduoProgram(treemap.TreeMap map) {
		
	}
	
	public PseduoProgram(int i) {
		//System.out.println("using int: " + i);
		if(i != 999) {
			throw new RuntimeException();
		}
		this.i = i;
	}
	
	public PseduoProgram(String x) {
		//System.out.println("using string: " + x);
		if(!x.equals("hello-world")) {
			throw new RuntimeException();
		}
		this.x = x;
	}
	
	public PseduoProgram(int i, String x) {
		//System.out.println("using int: " + i +" string: " + x);
		if(x.equals("hello-world") && i == 999) {
			//ok
			this.i = i;
			this.x = x;
		} else {
			throw new RuntimeException();
		}
	}
	
	public void needTreeMap(treemap.TreeMap map) {
		this.i += map.hashCode();
		this.x = map.toString();
	}
	
	public PseduoProgram increaseNum() {
		this.i++;
		return this;
	}
	
	public int getANum() {
		return this.i * 999;
	}
	
	public void print_out() {
		//System.out.println("content: " + this.toString());
	}
	
	public String toString() {
		return "int: " + i + ", string: " + x;
	}
	
}